function foo() {
  var name = "frank";
  var age = 10;

  function bar() {
    // debugger;
    console.log(name);
    console.log(age);
  }
  return bar;
}

var fn = foo();
fn();
